import java.awt.Color;
import javax.swing.*;

public class fileExitCommand extends JMenuItem implements Command 
{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel panel;
    
    public fileExitCommand(JPanel panel)
    {
        this.panel=panel;
    }

    public void execute()
    {
        this.panel.setBackground(Color.WHITE);
        System.exit(0);
    }

}
